//
//  NSDate+CoreKit.swift
//  OMTCoreKitSwift
//
//  Created by 昭荣伊 on 2018/12/7.
//

import Foundation

extension Date {
    /// 毫秒时间戳
    public var milliscondTimeIntervalSince1970: Int64 {
        get {
            let milliscond: Int64 = Int64(self.timeIntervalSince1970 * 1000)
            return milliscond
        }
    }
    
    /// 毫秒时间戳
    public static var milliscondTimeIntervalSince1970: Int64 {
        get {
            return self.init().milliscondTimeIntervalSince1970
        }
    }
}
